/*
 * @Descripttion:共通接口API
 * @Author:
 * @version:
 */

import { requestUrl } from "../util/request"





// 调用/assets/sysparameter/workflow-list 获取到流程参数后  直接选取parameterCode=6的任意一条记录的subCode提交即可
export function workflowList(code: any) {
	return requestUrl({
		url: `/base/sysparameter/workflow-list?parameterCode=6`,
		data: '',
		method: 'get',
		keyWord: '',
		isJson: false
	})
}

/***
 * @function 资产信息状态枚举
 */

export function assetStatus(enumkeys: string) {
	return requestUrl({
		url: `/enums/` + enumkeys,
		data: '',
		method: 'get',
		keyWord: 'assets',
		isJson: false
	})
}
/***
 * @function 位置
 */

export function getPosition() {
	return requestUrl({
		url: `/scmstore/list?page=${1}&rows=${-1}`,
		method: 'get',
		keyWord: 'inspection',
		isJson: false
	})
}
/***
 * @function 登录
 */

export function login(data: any) {
	return requestUrl({
		url: `login?username=${data.username}&password=${data.password}`,
		data: data,
		method: 'post',
		keyWord: '',
		isJson: false
	})
}

